package org.sbbs.admin.entity;

import jakarta.persistence.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.Comment;
import org.sbbs.base.jpa.entity.BaseEntity;

//@Data
@Data
@EqualsAndHashCode(callSuper = true)
@Entity
@Table(name = "sys_dict_item")
@Comment("系统字典选项表")
public class SysDictItem  extends BaseEntity {

    private static final long serialVersionUID = -3482319791393236939L;
    @ManyToOne
    @JoinColumn(name = "parent_id")
    @Comment("父ID")
    private SysDict parent;


    /**
     * 标识
     */
    @Column(name = "item_value", length = 50)
    @Comment("字典选项值")
    private String value;

    /**
     * 名称
     */
    @Column(name = "item_desc", length = 50)
    @Comment("字典选项解释")
    private String description;



    /**
     * 备注
     */
    @Column(name = "remark", length = 500)
    @Comment("备注")
    private String remark;

    /**
     * 排序
     */
    @Column(name = "sort_value")
    @Comment("字典选项排序值")
    private Integer sortValue;

    
}
